<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="java.util.Collection"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="sessionAdmin.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/style.css" />
<title>Modification des arbitres</title>
</head>
<body>
<%@ include file="sessionAdmin.jsp"%>
	<div class="conteneur">
		<c:choose>
			<c:when test="${messageAjouterArbitreErreur!=null}">

				<div class="alert alert-error">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>Erreur : </strong>
					<c:out value="${requestScope.messageAjouterArbitreErreur}" />
				</div>
			</c:when>
			<c:when test="${messageAjouterArbitreSuccès!=null}">

				<div class="alert alert-success">
					<button type="button" class="close" data-dismiss="alert">&times;</button>
					<strong>Succès : </strong>
					<c:out value="${requestScope.messageAjouterArbitreSuccès}" />
				</div>
			</c:when>
		</c:choose>

		<div>
			<form method="post" action="tournoi?action=ajouter_arbitre">
				<fieldset>
					<legend>Ajouter des arbitres</legend>

					<label>Liste des arbitres</label></br>

					<div class="listeArbitre">
						<table class="table table-condensed table-striped">
							<tr>
								<th>Nom</th>
								<th>Prénom</th>
							</tr>
							<c:forEach var="i" begin="1" end="${NombreArbitre}" step="1">
								<tr>
									<td>Arbitre n° <c:out value="${i}"></c:out></td>
									<td><input type="text" value=""
										name="a<c:out value="${i-1}"/>_n" /></td>
									<td><input type="text" value=""
										name="a<c:out value="${i-1}"/>_p" /></td>
								</tr>
							</c:forEach>
						</table>
					</div>
					</br> <input type="submit" value="Ajouter les arbitres" class="btn" />
					<a href="tournoi.jsp" class="btn btn-danger ">Annuler</a>
					<fieldset>
			</form>
		</div>
	</div>
</body>
</html>